package com.wrl.design.principle.demeter;

/**
 * 迪米特法则
 * Boss给TeamLeader下命令，查询在线课程的数量。
 * Boss类🙅‍ 不会跟Course类有接触，而是TeamLeader类去查Course的数量，把结果给Boss
 *
 * @author Wang Renlei
 * @Date 2019/11/11 0011
 */
public class Test {

    public static void main(String[] args) {
        Boss boss = new Boss();
        TeamLeader teamLeader = new TeamLeader();
        boss.commandCheckNumber(teamLeader);
    }

}
